package com.gree.service.imp;

import java.util.List;
import com.gree.dao.TrsT021RunmoveRecordDao;
import com.gree.entity.TrsT021RunmoveRecord;
import org.springframework.stereotype.Service;
import com.gree.service.ITrsT021RunmoveRecordService;
import org.springframework.beans.factory.annotation.Autowired;

@Service("recordService")
public class TrsT021RunmoveRecordServiceImpl implements
		ITrsT021RunmoveRecordService {
	@Autowired
	private TrsT021RunmoveRecordDao trsT021RunmoveRecordDao;

	public TrsT021RunmoveRecordDao getTrsT021RunmoveRecordDao() {
		return trsT021RunmoveRecordDao;
	}

	public void setTrsT021RunmoveRecordDao(
			TrsT021RunmoveRecordDao trsT021RunmoveRecordDao) {
		this.trsT021RunmoveRecordDao = trsT021RunmoveRecordDao;
	}

	/** 查询当前用户的运行记录 */
	@Override
	public List<TrsT021RunmoveRecord> getRunmoveRecordArray(String id) {
		return trsT021RunmoveRecordDao.getRunmoveRecordArray(id);
	}

	/** 插入属性值不为null的数据到数据库 */
	@Override
	public Integer appendNonEmptyRunRecord(TrsT021RunmoveRecord obj) {
		return trsT021RunmoveRecordDao.appendNonEmptyRunRecord(obj);
	}

	/*** 获取所有用户正在运行的 */
	@Override
	public List<TrsT021RunmoveRecord> getRuningRecord(Integer counts) {
		return trsT021RunmoveRecordDao.getRuningRecord(counts);
	}

	/*** 获取当前用户的正在运行的 */
	@Override
	public List<TrsT021RunmoveRecord> getRunRecordById(TrsT021RunmoveRecord obj) {
		return trsT021RunmoveRecordDao.getRunRecordById(obj);
	}

	/** 修改运行时间 */

	@Override
	public Integer editorRunDateRecord(TrsT021RunmoveRecord obj) {
		return trsT021RunmoveRecordDao.editorRunDateRecord(obj);
	}

	/** 修改运行结束时间 */
	@Override
	public Integer editorEndDateRecord(TrsT021RunmoveRecord obj) {
		return trsT021RunmoveRecordDao.editorEndDateRecord(obj);
	}

	/** 通过TrsT021RunmoveRecord的id删除 */
	@Override
	public Integer deleteRunmoveRecordById(String id) {
		return trsT021RunmoveRecordDao.deleteRunmoveRecordById(id);
	}

	@Override
	public Integer editorReduction() {

		return trsT021RunmoveRecordDao.editorReduction();
	}

	@Override
	public Integer editorReset(TrsT021RunmoveRecord obj) {
		return trsT021RunmoveRecordDao.editorReset(obj);
	}

	@Override
	public Integer editorRowLines(TrsT021RunmoveRecord obj) {
		 
		return trsT021RunmoveRecordDao.editorRowLines(obj);
	}

	@Override
	public Integer getRunmoveRecordById(String infoId) {
 
		return trsT021RunmoveRecordDao.getRunmoveRecordById(infoId);
	}

}
